package com.huluobo.a2202mvvm_im_douyindemo.cart;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.a2202mvvm_im_douyindemo.bean.CartBeanResult;
import com.huluobo.a2202mvvm_im_douyindemo.mvvmBase.BaseViewModel;

/**
 * Created by LC on 2024/5/15.
 */
public class CartViewModel extends BaseViewModel<CartRepo> {

    MutableLiveData<CartBeanResult> getCartListSuccess = new MutableLiveData<>();

    MutableLiveData<String> getCartListFailed = new MutableLiveData<>();

    public void queryCartList() {
        repo.queryCartList(getCartListSuccess, getCartListFailed);
    }

    @Override
    protected CartRepo createRepo() {
        return new CartRepo();
    }
}
